<?php
/* Smarty version 3.1.31, created on 2019-08-20 22:52:18
  from "/data/www/wwwroot/phprap/application/admin/view/setting/index.html" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.31',
  'unifunc' => 'content_5d5c0922404be5_55827528',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'b3f7fe882f95e0f6c582c3577e43ec05b0edee8d' => 
    array (
      0 => '/data/www/wwwroot/phprap/application/admin/view/setting/index.html',
      1 => 1564463076,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5d5c0922404be5_55827528 (Smarty_Internal_Template $_smarty_tpl) {
if (!is_callable('smarty_function_include_file')) require_once '/data/www/wwwroot/phprap/application/common/smarty/function.include_file.php';
echo smarty_function_include_file(array('name'=>'public/header','title'=>'系统设置'),$_smarty_tpl);?>


</head>

<body>

<div id="wrapper">

    <!-- Navigation -->
    <?php echo smarty_function_include_file(array('name'=>'public/nav','sidebar'=>'sidebar'),$_smarty_tpl);?>

    <div id="page-wrapper">
        <div class="row">
            <div class="col-lg-12">
                <h1 class="page-header">系统设置</h1>
            </div>
            <!-- /.col-lg-12 -->
        </div>
        <!-- /.row -->
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-default">

                    <div class="panel-body">
                        <div class="row">
                            <div class="col-lg-12">
                                <form role="form" id="js_settingForm" action="<?php echo url('admin/setting');?>
" method="post">
                                    <div class="form-group">
                                        <label>网站名称</label>
                                        <input class="form-control" name="config[name]" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['name'];?>
" placeholder="必填，至少2位" datatype="*2-250" nullmsg="请输入网站名称！">
                                    </div>

                                    <div class="form-group">
                                        <label>网站关键字</label>
                                        <input class="form-control" name="config[keywords]" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['keywords'];?>
" placeholder="" ignore="ignore" datatype="*">
                                    </div>

                                    <div class="form-group">
                                        <label>网站描述</label>
                                        <textarea class="form-control" name="config[description]" rows="1" ignore="ignore" datatype="*" nullmsg="请输入版权信息！"><?php echo $_smarty_tpl->tpl_vars['config']->value['description'];?>
</textarea>
                                    </div>

                                    <div class="form-group">
                                        <label>版权信息</label>
                                        <input class="form-control" name="config[copyright]" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['copyright'];?>
" placeholder="" ignore="ignore" datatype="*">
                                    </div>

                                    <div class="form-group">
                                        <label>系统邮箱</label>
                                        <input class="form-control" name="config[email]" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['email'];?>
" placeholder="必填" datatype="e" nullmsg="请输入系统邮箱！" errormsg="请输入合法邮箱">
                                    </div>

                                    <div class="form-group">
                                        <label>注册口令 <a data-toggle="tooltip" data-placement="right" title="" class="btn-show-tips" data-original-title="如果不填写注册口令，那么注册页面不会有输入注册口令项">
                                                <i class="fa fa-info-circle"></i>
                                            </a></label>
                                        <input class="form-control" name="config[register_token]" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['register_token'];?>
" placeholder="非必填，4-10个字符，区分大小写" value="123456" ignore="ignore" datatype="*4-10" nullmsg="请输入注册口令！" errormsg="至少6位">
                                    </div>

                                    <div class="form-group">
                                        <label>重置默认密码</label>
                                        <input class="form-control" name="config[default_password]" value="<?php echo $_smarty_tpl->tpl_vars['config']->value['default_password'];?>
" placeholder="必填，6-20个英文字母、数字或下划线组成的字符" value="123456" datatype="*6-20" nullmsg="请输入重置默认密码！" errormsg="至少6位">
                                    </div>

                                    <div class="form-group">
                                        <label for="recipient-name" class="control-label">注册验证码 <a data-toggle="tooltip" data-placement="right" title="" class="btn-show-tips" data-original-title="开启后必须输入正确验证码才能注册">
                                                <i class="fa fa-info-circle"></i>
                                            </a></label>
                                        <div class="form-group">
                                            <label class="radio-inline">
                                                <input type="radio" name="config[register_captcha]" <?php if ($_smarty_tpl->tpl_vars['config']->value['register_captcha'] == 1) {?>checked<?php }?> value=1 > 开启
                                            </label>

                                            <label class="radio-inline">
                                                <input type="radio" name="config[register_captcha]" <?php if ($_smarty_tpl->tpl_vars['config']->value['register_captcha'] == 0) {?>checked<?php }?> value=0> 关闭
                                            </label>

                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for="recipient-name" class="control-label">登录验证码 <a data-toggle="tooltip" data-placement="right" title="" class="btn-show-tips" data-original-title="开启后必须输入正确验证码才能登录">
                                                <i class="fa fa-info-circle"></i>
                                            </a></label>
                                        <div class="form-group">
                                            <label class="radio-inline">
                                                <input type="radio" name="config[login_captcha]" <?php if ($_smarty_tpl->tpl_vars['config']->value['login_captcha'] == 1) {?>checked<?php }?> value=1 > 开启
                                            </label>

                                            <label class="radio-inline">
                                                <input type="radio" name="config[login_captcha]" <?php if ($_smarty_tpl->tpl_vars['config']->value['login_captcha'] == 0) {?>checked<?php }?> value=0> 关闭
                                            </label>

                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for="recipient-name" class="control-label">推送消息 <a data-toggle="tooltip" data-placement="right" title="" class="btn-show-tips" data-original-title="开启后会在指定时间间隔内推送项目加入申请和申请结果，关闭后只有在刷新页面时才会推送消息">
                                                <i class="fa fa-info-circle"></i>
                                            </a></label>
                                        <div class="form-group">
                                            <label class="radio-inline">
                                                <input type="radio" name="config[is_push]" <?php if ($_smarty_tpl->tpl_vars['config']->value['is_push'] == 1) {?>checked<?php }?> value=1 > 开启
                                            </label>
                                            <label class="radio-inline">
                                                <input type="radio" name="config[is_push]" <?php if ($_smarty_tpl->tpl_vars['config']->value['is_push'] == 0) {?>checked<?php }?> value=0> 关闭
                                            </label>

                                        </div>
                                    </div>

                                    <div class="form-group js_pushTime hidden">
                                        <label>推送间隔(单位秒)</label>
                                        <input class="form-control" name="config[push_time]" value="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['config']->value['push_time'])===null||$tmp==='' ? 3 : $tmp);?>
" placeholder="单位秒" value="3" datatype="n">
                                    </div>

                                    <button type="reset" class="btn btn-default">重置</button>
                                    <button type="button" class="btn btn-primary js_submit">提交</button>

                                </form>

                            </div>
                            <!-- /.col-lg-6 (nested) -->

                            <!-- /.col-lg-6 (nested) -->
                        </div>
                        <!-- /.row (nested) -->
                    </div>
                    <!-- /.panel-body -->
                </div>
                <!-- /.panel -->
            </div>
            <!-- /.col-lg-12 -->
        </div>
        <!-- /#page-wrapper -->

    </div>
    <hr>
    <p class="text-center"><?php echo get_config('copyright');?>
</p>
    <!-- /#wrapper -->
    <?php echo '<script'; ?>
>

        //展示推送间隔信息
        var pushTimeShow = function(){
            var isPush = $("input[name='config[is_push]']:checked").val();

            if(isPush == 1){

                $(".js_pushTime").removeClass("hidden");
                $(".js_pushTime input").attr("ignore",'');

            }else{

                $(".js_pushTime").addClass("hidden");
                $(".js_pushTime input").attr("ignore",'ignore');

            }
        }

        pushTimeShow();

        // 选择不时时推送时
        $("input[name='config[is_push]']").click(function(){
            pushTimeShow();
        });

        $(function(){
            //表单合法性验证
            $("#js_settingForm").validateForm();

        });
    <?php echo '</script'; ?>
>


    <?php echo smarty_function_include_file(array('name'=>'public/footer'),$_smarty_tpl);?>

<?php }
}
